<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="../../css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../js/jquery.js"></script>
<script type="text/javascript" src="../../js/sys/area/areaList.js"></script>
</head>

<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li><a href="areaList">系统管理</a></li>
    <li><a href="areaList">区域管理</a></li>
  </ul>
</div>
<div class="rightinfo">
  <form th:action="@{/areaManage/areaList}" method="post" id="query">
    <ul class="tools">
      <li> 省:
        <select id="province" name="pName">
          <option>请选择省份</option>
          <option>江西</option>
          <option>江苏</option>
          <option>广东</option>
          <option>安徽</option>
          <option>浙江</option>
        </select>
      </li>      <li> 市:
        <select id="city1" name="cNumber" >
          <option value="">请选择城市</option>
        </select>
      </li>
      <li  class="subBut" onclick="query()"><img src="../../images/t06.png" />查询</li>
    </ul>
    <table class="tablelist">
      <thead>
        <tr>
          <th>序号</th>
          <th>省编号</th>
          <th>省名称</th>
          <th>市编号</th>
          <th>市名称</th>
        </tr>
      </thead>
      <tbody>

      <tr th:each=" area1,uStat : ${areaList.data}">
        <td th:text="${uStat.count}"></td>
          <td>[[${area1.pNumber}]]</td>
          <td>[[${area1.pName}]]</td>
          <td>[[${area1.cNumber}]]</td>
          <td>[[${area1.cName}]]</td>
        </tr>

      </tbody>
    </table>
    <div class="pagin">
      <div class="message">共<i class="blue">[[${areaList.totalRows}]]</i>条记录，当前显示第&nbsp;<i class="blue">[[${areaList.pageNum}]]&nbsp;</i>页</div>
      <ul class="paginList">
        <li class="paginItem" th:if="${areaList.pageNum>1}"><a th:href="@{${'areaList'}(pageNum=${areaList.pageNum-1})}"><span class="pagepre"></span></a></li>
        <li class="paginItem" th:if="${areaList.totalRows>0}"><a th:href="@{${'areaList'}(pageNum=${1})}">1</a></li>
        <li class="paginItem more" th:if="${areaList.totalRows>6}"><a href="javascript:;">...</a></li>
        <li class="paginItem" th:if="${areaList.totalRows>3}"><a th:href="@{${'areaList'}(pageNum=${areaList.totalPage})}">[[${areaList.totalPage}]]</a></li>
        <li class="paginItem" th:if="${areaList.pageNum<=areaList.totalPage-1}"><a th:href="@{${'areaList'}(pageNum=${areaList.pageNum+1})}"><span class="pagenxt"></span></a></li>
      </ul>
    </div>
  </form>
</div>
<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
</script>
</body>
</html>
